<script>
  var o1 = {};                                      // 定义空对象
  var o2 = {name: 'Jim'};                           // 定义含有name属性的对象
  var o3 = {name: 'Jim', age: 19, gender: '男'};    // 定义含有3个属性的对象
</script>

<script>
  var o4 = {
    name: 'Jim',                // 成员属性o4.name
    age: 19,                    // 成员属性o4.age
    gender: '男',               // 成员属性o4.gender
    sayHello: function() {      // 成员方法o4.sayHello()
      console.log('你好');
    }
  };
</script>

<script>
  var obj = {name: 'Tom', age: 24, work: true, arr: [1, 2]};
  var json = '{"name":"Tom","age":24,"work":true,"arr":[1,2]}';
  var obj = {"name":"Tom","age":24,"work":true,"arr":[1,2]};
</script>

<script>
  var obj = [{"name":"Tom","age":24},{"name":"Jim","age":25}];
</script>
<p>
  <a href="file:///C:/Users/rise/Desktop/%E9%A6%96%E9%A1%B5/default/05.html">返回</a>
</p>